package cn.oniokey.waterDetection.service.serviceImpl;

import cn.oniokey.waterDetection.domain.User;
import cn.oniokey.waterDetection.mapper.UserMapper;
import cn.oniokey.waterDetection.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    final
    UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User getUserByUsernameAndPassword(String username, String password) {
        return userMapper.getUserByUsernameAndPassword(username,password);
    }

}
